﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace PQ
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {

          System.IO.FileInfo fi=  new System.IO.FileInfo("log4net.config");
          log4net.Config.XmlConfigurator.Configure(fi);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            FrmLogin frm = new FrmLogin();
            DialogResult dr = frm.ShowDialog();
            if (dr == DialogResult.OK)
            {
                Application.Run(new FrmMain(frm.BlUser,frm.userEntity));
            }
            else
            {
                Application.Exit();
            }
        }
    }
}
